package com.ruleengine.admin.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CreateRulechainRequest {

    @Pattern(regexp = "[\u4e00-\u9fa5\\w-]+")
    @NotNull
    @Size(min = 2, max = 32)
    private String name;

    @NotNull
    @Size(max = 128)
    private String description;

}
